﻿#include "ThreadClienNetWork.h"

ThreadClienNetWork::ThreadClienNetWork(QTcpSocket* tcpSocket): tcpSocket{ tcpSocket } {}

void ThreadClienNetWork::sendMsg(const QString* msg
	, QSemaphore* qSemaphore) {
	QByteArray bytes = msg->toLocal8Bit( );
	tcpSocket->write(bytes, bytes.size( ));
	qSemaphore->release(1);
}
